import { Injectable } from '@angular/core';
import { ZorroOption } from '../global/model';

@Injectable({
  providedIn: 'root'
})
export class VariableService {

  zorroOpts:{ [key:string]:{ label:string,value:number }[] } = {};
  // singleOpt:{ [key:string]:{ label:string,value:number } } = {};

  amount_type = {
    '现金':'现金','记账':'记账','承兑':'承兑','支票':'支票'
  }

  PERMISSIONS = {
    '查看':'查看','新增':'新增','修改':'修改','删除':'删除','审核':'审核','作废':'作废',
    '打印':'打印','导出':'导出','金额':'金额'
  }


  constructor(){
    this.zorroOpts['one_way'] =  [{ label:'单程',value:1 },{ label:'往返',value:2 }] ;
    // this.singleOpt['one_way'] =  { label:'单程',value:1 } ;
  }


}
